<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=gb123"/>
    <title>Title</title>
</head>
<style type="text/css">
    .timer{
        width: 200px;
        height: 150px;
        text-align: center;
        margin-left: 700px;
        margin-top: 100px;
        border: #666666 solid 1px;
        border-radius: 5px;

    }
</style>

<body>


<div class="timer">


    {{if .uploadSuccess  }}
        <h2>{{.uploadSuccess}}</h2>
    {{end}}
    {{if .deleteSuccess}}
        <h2>{{.deleteSuccess}}</h2>
    {{end}}
    {{if .deleteImageSuccess  }}
        <h2>{{.deleteImageSuccess}}</h2>
    {{end}}
    {{if .UpdateInfSuc  }}
        <h2>{{.UpdateInfSuc}}</h2>
        <h3>请重新登录</h3>
    {{end}}
    {{if .pageNoExit}}
        <h2>{{.pageNoExit}}</h2>
    {{end}}
    {{if .BookUpdateSucc}}
        <h2>{{.BookUpdateSucc}}</h2>
    {{end}}

    {{if .BookInsertSucc}}
        <h2>{{.BookInsertSucc}}</h2>
    {{end}}
    {{if .ReleaseSucc}}
        <h2>{{.ReleaseSucc}}</h2>
    {{end}}
    {{if .RevokeSucc}}
        <h2>{{.RevokeSucc}}</h2>
    {{end}}

    <p>
        <b id="second">3</b>秒后回到主页&nbsp;<a href="javascript:goBack();">返回</a>
    </p>
</div>


<script type="text/javascript">

    var sec = document.getElementById("second");
    var i = 3;
    var timer = setInterval(function () {
        i--;
        sec.innerHTML = i;
        if (i == 1) {
            window.location.href = "http://localhost:8080/admin";
        }
    }, 1000);

    function goBack() {
        window.history.go(-1);
    }
</script>

</body>
</html>